home *** CD-ROM | disk | FTP | other *** search
/ Freelog 121 / FreelogMagazineJuilletAout2014-No121.iso / Outils / Adobe-Air / adobe-air_13.exe / [0] / setup.swf / scripts / mx / skins / halo / ApplicationBackground.as next >
Text File  |  2014-03-27  |  2KB  |  57 lines

  1. package mx.skins.halo
  2. {
  3.    import flash.display.Graphics;
  4.    import mx.core.mx_internal;
  5.    import mx.skins.ProgrammaticSkin;
  6.    import mx.utils.ColorUtil;
  7.    
  8.    use namespace mx_internal;
  9.    
  10.    public class ApplicationBackground extends ProgrammaticSkin
  11.    {
  12.       
  13.       mx_internal static const VERSION:String = "3.0.0.0";
  14.        
  15.       
  16.       public function ApplicationBackground()
  17.       {
  18.          super();
  19.       }
  20.       
  21.       override public function get measuredWidth() : Number
  22.       {
  23.          return 8;
  24.       }
  25.       
  26.       override public function get measuredHeight() : Number
  27.       {
  28.          return 8;
  29.       }
  30.       
  31.       override protected function updateDisplayList(param1:Number, param2:Number) : void
  32.       {
  33.          var _loc6_:uint = 0;
  34.          super.updateDisplayList(param1,param2);
  35.          var _loc3_:Graphics = graphics;
  36.          var _loc4_:Array = getStyle("backgroundGradientColors");
  37.          var _loc5_:Array = getStyle("backgroundGradientAlphas");
  38.          if(!_loc4_)
  39.          {
  40.             _loc6_ = getStyle("backgroundColor");
  41.             if(isNaN(_loc6_))
  42.             {
  43.                _loc6_ = 16777215;
  44.             }
  45.             (_loc4_ = [])[0] = ColorUtil.adjustBrightness(_loc6_,15);
  46.             _loc4_[1] = ColorUtil.adjustBrightness(_loc6_,-25);
  47.          }
  48.          if(!_loc5_)
  49.          {
  50.             _loc5_ = [1,1];
  51.          }
  52.          _loc3_.clear();
  53.          drawRoundRect(0,0,param1,param2,0,_loc4_,_loc5_,verticalGradientMatrix(0,0,param1,param2));
  54.       }
  55.    }
  56. }
  57.